package scuts.core.types;


#if stax
typedef Tup2<A,B> = Prelude.Tuple2<A,B>;
#else
class Tup2<A,B> {
	public var _1(default, null):A;
	public var _2(default, null):B;
	
	function new (_1:A, _2:B) {
		this._1 = _1;
		this._2 = _2;
	}
	public static function create <A,B>(_1:A, _2:B) {
		return new Tup2(_1, _2);
	}
	
	public function toString () {
		return "(" + _1 + "," + _2 + ")";
	}
}
#end